/** 
 * Copyright (C), 2010-2012, TIETIAO Software Co.,Ltd. ALL RIGHTS RESERVED. 
 * File name:CommidityFavoriteService.java
 * Version:1.0
 * Date:2011-12-14
 * Description: 用户商品贴条收藏夹service
 * author:zhijian.zhang
 */
package com.tietiao.service.tietiao;

import java.util.List;

import com.tietiao.dao.model.UserCommidityFavorite;

public interface CommidityFavoriteService {

	/**
	 * 
	 * 功能：根据用户ID获取用户收藏夹数据
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-14
	 * 
	 * @param userId
	 *            用户ID
	 * @param sortDesc
	 *            排序方式
	 * @return
	 */
	public List<UserCommidityFavorite> getUserCommidityFavorites(int userId,
			String orderByClause);

	/**
	 * 
	 * 功能：添加用户收藏夹
	 * 
	 * @author: zhijian.zhang
	 * @Date: 2011-12-14
	 * 
	 * @param userCommidityFavorite
	 *            用户收藏夹对象
	 * @return 用户收藏夹ID
	 */
	public int addUserCommidityFavorite(
			UserCommidityFavorite userCommidityFavorite);
	/**
	 * 
	 * 功能：根据收藏夹名称查询收藏夹列表
	 * @author: zhijian.zhang
	 * @Date: 2012-1-15
	 *
	 * @param favName
	 * @param loginUserId
	 * @param start
	 * @param limit
	 * @param orderByClause
	 * @return
	 */
	List<UserCommidityFavorite> searchFavsByFavName(String favName,
			Integer loginUserId, Integer start, Integer limit,
			String orderByClause);

}
